

import 'package:freezed_annotation/freezed_annotation.dart';

part 'WordQuery.g.dart';
///WordQuery
@JsonSerializable()
class WordQuery {

  ///词书ID(全匹配)
  @JsonKey(name: "bookId")
  String? bookId;

  ///是否升序
  @JsonKey(name: "isAsc")
  bool? isAsc;

  ///第几页
  @JsonKey(name: "pageNo")
  int? pageNo;

  ///页大小
  @JsonKey(name: "pageSize")
  int? pageSize;

  ///基于那个字段排序
  @JsonKey(name: "sort")
  String? sort;

  ///单词(右模糊)
  @JsonKey(name: "word")
  String? word;

  WordQuery({
    this.bookId,
    this.isAsc,
    this.pageNo,
    this.pageSize,
    this.sort,
    this.word,
  });

  factory WordQuery.fromJson(Map<String, dynamic> json) => _$WordQueryFromJson(json);

  Map<String, dynamic> toJson() => _$WordQueryToJson(this);
}